package com.xinyue.auto.util;

import java.util.List;

public class ArrayUtil {
	
	/**
	 * 将集合转化成数组
	 */
	public static String[] toArray(List<String> list) {
		//将数组转化成对象
		if(list != null && list.size() > 0) {
			return list.toArray(new String[list.size()]);
		}
		
		return null;
	}
}
